//
//  LSYNovelService.h
//  LSYReader
//
//  Created by sam on 2018/3/22.
//  Copyright © 2018年 okwei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LSYParseModel.h"
#import "LSYReadModel.h"
#import "AFNetworking.h"
#import "LSYBook.h"
#import "LSYChapter.h"
@interface LSYNovelService : NSObject
+ (void)getChapters:(LSYBook *)book block:(void(^)(NSArray *chapters))block;
+ (void)getChapterContent:(LSYChapter *)chapter book:(LSYBook *)book block:(void(^)(NSString *content))block;
+ (void)searchNovel:(LSYParseModel *)rule key:(NSString *)key novels:(void(^)(NSArray *novels,NSString *moreUrl))block;
+ (void)searchBookAndChapter:(LSYReadModel *)model rule:(LSYParseModel *)rule block:(void(^)(BOOL success))block;
+ (void)batchSearch:(LSYBook *)book block:(void(^)(NSMutableArray *rules))block;
@end
